<?php if(!defined('BASEPATH'))exit('No direct script access allowed'); ?>
<?php if(count($rows) > 0){ ?>
<div class="module">
    <div class="oModule">
        <div class="iModule">
            <div class="title"><?php echo lang('POPULAR_SHOP'); ?></div>
            <div class="row">
                <!--LOOP-->
                <?php foreach($rows as $row){ ?>
                <div class="row85" style="border:0px;">
                    <div class="img">
                        <a href="<?php echo base_url().$row->shoLink; ?>" title="<?php echo lang('VISIT_SHOP'); ?>" target="_blank">
                            <img src="<?php echo base_url().show_thumbnail('thumbnail73X70_', $row->shoLogo, IMAGE_PATH.'shop/logos/'.$row->shoDirLogo.'/', 'templates/home/images/defaultLogo.jpg'); ?>" width="73" height="70" alt="<?php echo $row->shoName; ?>" />
                        </a>
                    </div>
                    <div class="info">
                        <div>
                            <a class="vtip" href="<?php echo base_url().$row->shoLink; ?>" title="<?php echo tip(sub($row->shoDescr, 50)); ?>" target="_blank"><b><?php echo sub($row->shoName, 20); ?></b></a>
                        </div>
                        <div>
                            <span class="blue"><?php echo $row->preName; ?></span>
                        </div>
                        <div class="star">
                            <?php for($i = 1; $i <= 5; $i++){ ?>
                            <?php if($i <= (int)$row->shoLevel){ ?>
                            <img src="<?php echo base_url(); ?>templates/home/images/starBlue1.jpg" align="absmiddle" />
                            <?php }else{ ?>
                            <img src="<?php echo base_url(); ?>templates/home/images/starBlue0.jpg" align="absmiddle" />
                            <?php } ?>
                            <?php } ?>
                        </div>
                        <div>
                            <span class="gray"><?php echo lang('JOIN'); ?>: <?php echo date_convert($row->useRegisterDate); ?></span>
                        </div>
                    </div>
                </div>
                <?php } ?>
                <!--LOOP-->
            </div>
        </div>
    </div>
</div>
<?php } ?>